package com.project.communitymanagement.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.project.communitymanagement.common.BaseEntity;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 
 * 
 */
@Data
public class TbOwner extends BaseEntity implements Serializable {


    /**
     * 真实姓名
     */
    private String name;

    /**
     * 用户名
     */
    private String username;

    /**
     * 密码
     */
    private String password;

    /**
     * 角色 0 管理员 1 用户
     */
    private Integer role_id;

    /**
     * 手机
     */
    private String phone;

    /**
     * 地址
     */
    private String address;

    /**
     * 头像
     */
    private String avatar;

    /**
     * 生日
     */
    private String birthday;

    /**
     * 职位
     */
    private String position;

    /**入职时间*/
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @JSONField(format= "yyyy-MM-dd")
    private Date entry_time;

    /**工资*/
    private String salary;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @JSONField(format= "yyyy-MM-dd")
    private Date start_time;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @JSONField(format= "yyyy-MM-dd")
    private Date end_time;

    private Integer start_salary;
    private Integer end_salary;


    private Integer start_age;
    private Integer end_age;


    /**年纪*/
    private Integer sex;
    /**性别*/
    private Integer age;
    private String downName;

    private static final long serialVersionUID = 1L;
}